package day1108_4;

import java.util.ArrayList;
import java.util.List;

public class LoinServiceImpl {

    public void login(String name,String pwd) throws AccountOrPwdException {
        if("zs".equals(name)&&"123".equals(pwd)){
            System.out.println("登录成功");
        }else{
            throw  new AccountOrPwdException("");
        }
    }
}

